/*jslint white: true, browser: true, undef: true, nomen: true, eqeqeq: true, plusplus: false, bitwise: true, regexp: true, strict: true, newcap: true, immed: true, maxerr: 14 */
/*global window: false, REDIPS: true */

/* enable strict mode */
"use strict";

// define header_init and default redips_url variable
var header_init;

// header initialization
header_init = function () {
    var header = document.createElement('div'),
		title = document.title;
    // add "header" DIV element
    document.body.insertBefore(header, document.body.firstChild);
    // apply inner HTML
    //header.innerHTML = '<div class="bar"><h2>' + title + '</h2></div>';
    //		'<div style="float:left;width:50%;padding-left:10px"><a href="../">Index</a></div>' +
    //'<div style="text-align:right;padding-right:10px;margin-bottom:10px"><a href="#" class="btnadd"><img src="../assets/images/feather.png" />Add Event</a></div>';
};

// add onload event listener
if (window.addEventListener) {
	window.addEventListener('load', header_init, false);
}
else if (window.attachEvent) {
	window.attachEvent('onload', header_init);
}